#http://127.0.0.1/index.php/Home/Goods/search.html?q=iphone
# 在小皮商城搜索iphone商品
# 导包
import requests
# 发送接口请求
# resp=requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html",
#              params={"q":"iphone"})
resp=requests.get(url="http://127.0.0.1/index.php/Home/Goods/search.html?q=iphone",
             )
# 获取响应数据
print(resp.text)









